package com.wgts.wgts.control.dialog;

import android.support.v4.app.FragmentManager;

/*
 *
 *
 *   data:2018/10/2011:38
 *
 */public class LoadingDialogTools {
     private static LoadingDialogTools info = null;
     private LoadingDialogFragment fragment;
     private static final int unShowType = 124;
     private FragmentManager manager;
     private LoadingDialogTools(FragmentManager manager){
         this.manager = manager;
     }
     public static LoadingDialogTools getInstance(FragmentManager manager){
         if (info == null){
             info = new LoadingDialogTools(manager);
         }
         return info;
     }

     public void showLoadingDialog(){
         if (fragment == null){
             fragment = new LoadingDialogFragment();
         }
         fragment.show(manager, "LodingDialog");
     }

     public void dismissLoadingDialog(){
         if (fragment != null){
             fragment.dismiss();
         }
     }
}
